package com.zhong.gang.pda.ui.carorder;

import android.text.TextUtils;

public class OrderNumBean {
    private int status;
    /**
     * id : 1
     * createTime : 2019-12-21T16:11:43.000+0000
     * updateTime : 2019-12-21T16:11:43.000+0000
     * version : 0
     * deleted : false
     * createTimestamp : 1576944703000
     * updateTimestamp : 1576944703000
     * startLocalId : 1
     * type : 0
     * endLocalId : 2
     * distance : 100
     * transportCarId : 1
     * price : 8
     * sn :
     * qr :
     * payStatus : false
     * payAmount : 0
     * carNum : null
     * carTypeName : null
     * startLocal : null
     * endLocal : null
     * transportCar : {"id":1,"createTime":"2019-12-21T15:02:03.000+0000","updateTime":"2019-12-21T15:02:06.000+0000","version":0,"deleted":false,"createTimestamp":1576940523000,"updateTimestamp":1576940526000,"carNum":"渝A88888","carTypeId":1,"driverName":"张三","driverPhone":"12345678901","carStatus":0}
     */

    private int id;
    private String sn;
    private String carNum;
    private String startLocal;
    private String endLocal;
    private int endLocalId;
    private String carTypeName;
    private int type;
    private String createTime;
    private TransportCarBean transportCar;

    public int getEndLocalId() {
        return endLocalId;
    }

    public void setEndLocalId(int endLocalId) {
        this.endLocalId = endLocalId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }


    public String getCarTypeName() {
        return carTypeName == null ? "" : carTypeName;
    }

    public void setCarTypeName(String carTypeName) {
        this.carTypeName = carTypeName;
    }

    public TransportCarBean getTransportCar() {
        return transportCar;
    }

    public void setTransportCar(TransportCarBean transportCar) {
        this.transportCar = transportCar;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCreateTime() {
        return createTime == null ? "" : createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }


    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }


    public String getStartLocal() {
        return startLocal;
    }

    public void setStartLocal(String startLocal) {
        this.startLocal = startLocal;
    }

    public String getEndLocal() {
        return endLocal;
    }

    public void setEndLocal(String endLocal) {
        this.endLocal = endLocal;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public static class TransportCarBean {
        /**
         * id : 1
         * createTime : 2019-12-21T15:02:03.000+0000
         * updateTime : 2019-12-21T15:02:06.000+0000
         * version : 0
         * deleted : false
         * createTimestamp : 1576940523000
         * updateTimestamp : 1576940526000
         * carNum : 渝A88888
         * carTypeId : 1
         * driverName : 张三
         * driverPhone : 12345678901
         * carStatus : 0
         */

        private int id;
        private String createTime;
        private String updateTime;
        private int version;
        private boolean deleted;
        private long createTimestamp;
        private long updateTimestamp;
        private String carNum;
        private int carTypeId;
        private String driverName;
        private String driverPhone;
        private int carStatus;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public int getVersion() {
            return version;
        }

        public void setVersion(int version) {
            this.version = version;
        }

        public boolean isDeleted() {
            return deleted;
        }

        public void setDeleted(boolean deleted) {
            this.deleted = deleted;
        }

        public long getCreateTimestamp() {
            return createTimestamp;
        }

        public void setCreateTimestamp(long createTimestamp) {
            this.createTimestamp = createTimestamp;
        }

        public long getUpdateTimestamp() {
            return updateTimestamp;
        }

        public void setUpdateTimestamp(long updateTimestamp) {
            this.updateTimestamp = updateTimestamp;
        }

        public String getCarNum() {
            return carNum;
        }

        public void setCarNum(String carNum) {
            this.carNum = carNum;
        }

        public int getCarTypeId() {
            return carTypeId;
        }

        public void setCarTypeId(int carTypeId) {
            this.carTypeId = carTypeId;
        }

        public String getDriverName() {
            return driverName == null ? "" : driverName;
        }

        public void setDriverName(String driverName) {
            this.driverName = driverName;
        }

        public String getDriverPhone() {
            return driverPhone == null ? "" : driverPhone;
        }

        public void setDriverPhone(String driverPhone) {
            this.driverPhone = driverPhone;
        }

        public int getCarStatus() {
            return carStatus;
        }

        public void setCarStatus(int carStatus) {
            this.carStatus = carStatus;
        }

    }

}
